//
//  ShouZhiMingXiTableViewCell.m
//  firstpoint
//
//  Created by 泽中 on 2017/7/19.
//  Copyright © 2017年 xzcysoft. All rights reserved.
//

#import "ShouZhiMingXiTableViewCell.h"

@implementation ShouZhiMingXiTableViewCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        _payTypeLab=[[UILabel alloc]initWithFrame:CGRectMake(15, 15, 200, 16)];
        _payTypeLab.font=[UIFont systemFontOfSize:16];
        [self.contentView addSubview:_payTypeLab];
        
        _timeLab=[[UILabel alloc]initWithFrame:CGRectMake(width_screen/2, 15, width_screen/2-15, 13)];
        _timeLab.font=[UIFont systemFontOfSize:13];
        _timeLab.textColor=[UIColor lightGrayColor];
        _timeLab.textAlignment=2;

        [self.contentView addSubview:_timeLab];
         
        _yueLab=[[UILabel alloc]initWithFrame:CGRectMake(15, 40, width_screen/2, 13)];
        _yueLab.font=[UIFont systemFontOfSize:13];
        [self.contentView addSubview:_yueLab];
        
        _jineLab=[[UILabel alloc]initWithFrame:CGRectMake(width_screen/2, 40, width_screen/2-15, 16)];
        _jineLab.textAlignment=2;
        _jineLab.font=[UIFont systemFontOfSize:16];
        [self.contentView addSubview:_jineLab];
        
    }
    return self;
}
#pragma mark - 绘制Cell分割线
- (void)drawRect:(CGRect)rect {
    
    CGContextRef context = UIGraphicsGetCurrentContext();
    CGContextSetFillColorWithColor(context, [UIColor clearColor].CGColor);
    CGContextFillRect(context, rect);
    
    
    //下分割线
    CGContextSetStrokeColorWithColor(context, [UIColor colorWithRed:198/255.0 green:198/255.0 blue:198/255.0 alpha:1].CGColor);
    CGContextStrokeRect(context, CGRectMake(0, rect.size.height, rect.size.width, 0));
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
